﻿
function sound_play(path) {
    window.external.soundPlayer(path);
}

function sound_play_stop() {
    window.external.soundPlayer_stop();
}

function sound_speak(saystr) {
    window.external.soundSpeak(saystr);
}

function sound_speak_stop() {
    window.external.soundSpeak_stop();
}


function lis_Init() {
    return window.external.listen_Init();
}

function lis_Close() {
    return window.external.listen_Close();
}

var ls_callback;

function lis_Start(time, callback) {
    ls_callback = callback
    return window.external.listen_Start(time, "lis_Start_callback");
}

function lis_Start_callback(receivedData) {
    ls_callback(receivedData);
}


function lis_Stop() {
    return window.external.listen_Stop();
}



